Return ignoring of native grab/ungrab events when we don't have a grab
authorAlexander Larsson <alexl@redhat.com>
Tue, 3 Feb 2009 19:15:19 +0000 (20:15 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:30 +0000 (10:15 +0200)
commit20c81eca6a53e6f4694f7d0805208527a3385d9c
tree2c508a2529fa48905adac217cf8ce6ebb089108d
parent53269a5042878a55ee19915c52207b278849f031
Return ignoring of native grab/ungrab events when we don't have a grab

It turns out we really have to ignore grab/ungrab events or we'll
report double crossing events when we grab or ungrab.

However, we also can't ignore crossing events from grabs from other clients
as that leads to missed enter/leave events on e.g. alt-tab in metacity.

Fortunately we now track grabs very precisely, so we know with certainty
whether we have a grab at the time (serial) of the native crossing events,
and only if we do we ignore them.
gdk/gdkwindow.c